#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stddef.h>

//struct Peo
//{
//	char name[10];
//	int age;
//};
//struct Node
//{
//	int a;
//	int b;
//	struct Peo p;
//} p1= { .a = 1,.b = 2,{"zhnagsan",19} };
//
//struct Node p2 = { .b = 4,.a = 3, .p = {.age = 19,.name = "zhangsan" } };

struct S1
{
	char c1;
	char c2;
	int i;
}s1;


struct S2
{
	char c1;
	int i;
	char c2;
}s2;

struct S3
{
	char c;
	int i;
	struct S2 s;
	double j;
}s3;

int main()
{
	//printf("%zd\n", offsetof(struct S3, c));
	//printf("%zd\n", offsetof(struct S3, i));
	//printf("%zd\n", offsetof(struct S3, s));
	//printf("%zd\n", offsetof(struct S3, j));

	printf("%zd\n", sizeof(s3));

	return 0;
}


//printf("%d\n", sizeof(s1));
//printf("%d\n", sizeof(s2));
/*printf("%zd\n", offsetof(struct S1, c1));
printf("%zd\n", offsetof(struct S1, c2));
printf("%zd\n", offsetof(struct S1, i));*/
/*printf("%zd\n", offsetof(struct S2, c1));
printf("%zd\n", offsetof(struct S2, i));
printf("%zd\n", offsetof(struct S2, c2));*/

